package com.student.dao;

import java.io.Serializable;
import java.sql.SQLException;
import java.util.List;

public interface DaoSupport<E> {


    int insert(E entity) throws Exception;


    int updateById(E entity) throws Exception;


    int deleteById(Serializable id) throws Exception;


    E selectById(Serializable id)throws SQLException;


    List<E> select(int index, int len)throws SQLException;


    long count()throws SQLException;
}
